package org.pp.controller;

import io.swagger.v3.oas.annotations.Operation;
import org.pp.core.Result;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface BaseAdd<A>{
    @Operation(summary = "CRUD操作 新增")
    @PostMapping("/add")
    public Result<Object> add(@RequestBody @Validated A dto);
}
